package cn.edu.ctbu.bootstraptablepage.service;

import cn.edu.ctbu.bootstraptablepage.domain.Student;
import org.springframework.data.domain.Example;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

public interface IStudentService {
    public List<Student> getAll();

    public Page<Student> getAll(Pageable pageable);

    public List<Student> getAll(Example<Student> example);

    public List<Student> findByName(String studentName);

    public List<Student> findByNameLike(String studentName);

    public Student findById(Integer id);

    public Student save(Student student);

    public void delete(Integer id);

    public void delete(Student student);

    public Page<Student> findAll(Pageable pageable);

    public Page<Student> findBySex(Integer sex,Pageable pageable);

    public Boolean validUserNameAndPassword(String userName, String password) throws Exception;
}
